package com.exahq.util;

import com.exahq.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @description:
 * @author: lhq
 * @time: 2021/1/25 23:09
 */

public class ShiroUtil {
    public static AccountProfile getProfile() {
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }

}
